package day03;

public class IfElseDemo {
    public static void main(String[] args) {
        double price=600;
        if (price>=500){
            System.out.println("消费"+price+"，消费满500打8折，折后消费"+price*0.8);
        }else {
            System.out.println("消费"+price+"，消费不满500打9折，折后消费"+price*0.9);
        }

        int score=85;
        if (score>=0&&score<=100){
            System.out.println(score+"是合法成绩");
        }else {
            System.out.println(score+"是不合法成绩");
        }

        int num=1;
        if (num%2==0){
            System.out.println(num+"是偶数");
        }else {
            System.out.println(num+"是奇数");
        }
    }
}
